/**
 * 
 */
package com.delta.rafg.core.log.impl;

import com.delta.rafg.core.log.ILogQueuer;
import com.delta.rafg.core.log.LogData;
import com.delta.rafg.coredata.AObject;

/**
 * @author RAFG Development Team (D9785692)
 */
public class LogQueuerDummy extends AObject implements ILogQueuer {

	/**
	 * serialVersionUID Property.
	 */
	private static final long serialVersionUID = -7030251535428873723L;

	/*
	 * (non-Javadoc)
	 * @see
	 * com.delta.rafg.core.log.ILogQueuer#queueToLog(com.delta.rafg.core.log
	 * .LogData)
	 */
	@Override
	public final void queueToLog(final LogData logData) {

		new Thread(new Runnable() {

			@Override
			public void run() {
				switch(logData.getSeverity()){
					case LogData.INFO:
					case LogData.WARNING:
						AxisLogger.debug(logData.toStringLite());
					break;
					
					case LogData.ERROR:
					case LogData.ERROR_ONLY:
						AxisLogger.error(logData.toStringReqRes());
					break;
						
					case LogData.STATS:
					case LogData.STATS_ONLY:
						AxisLogger.error(logData.toStringReqRes());
					break;
						
					case LogData.FATAL:
						AxisLogger.error(logData.toString());
					break;
				}
			}
		}).start();
	}
	
	public void info(String pString){
		AxisLogger.debug(pString);
	}
}